<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" %>  
<html>
<head>
<title>求和</title>
</head>
<body>

<div align="center" style="border:solid 1px #999; height:400px; width:400px; padding:10px; position: absolute; top:50%; left:50%; transform:translate(-50%,-50%)">
  <div style="padding:10px; border-bottom:solid 1px #CCC;">
    <h2>求和系统</h2>
  </div>
<br>
  <b>第一个数:</b>
   <%  
    String s=request.getParameter("first_number");
    int m=Integer.parseInt(s);
    out.println(m);
   %>
<br>
<b>第二个数:</b>
   <%
     String t=request.getParameter("last_number");
     int n=Integer.parseInt(t);
     out.println(n);
    %>
<br>
<b>两个数的和是:</b>
   <%  
     int p=m+n;
     out.println(p);
    %>
    <div><img src="images/1.jpg" /></div>
    <b><a href="index.jsp">返回首页</a></b>
  </div>
</body>
</html>